﻿@{
    ViewBag.Title = "枚举子项列表";
    Layout = "~/Views/Shared/_LayoutList.cshtml"; 
}
@(       
 Html.DWZGridFor<EnumItem>()
    .Title("角色列表")
    .Action(@Url.Action("EnumItemList"))
    .Columns(col =>
    {
        col.Bind(e => e.Id).IsKey();
        col.Bind(e => e.EnumCode).Width(80).AsQuery();
        col.Bind(e => e.EnumName).Width(100).AsQuery();
        col.Bind(e => e.Remark).Width(200);
        col.Bind(e => e.Id, "操作", 120).Sortable(false)
            .Template(Url.EditLink("EditEnumItem", "编辑子项")
            + Url.DeleteLink("DeleteEnumItem", "${EnumName}"));
    })
    .Buttons(btn =>
    {
        btn.Bind("Add", "新建子项", FlexiGridButtonType.Add).Action(@Url.Action("EditEnumItem")).OnPress("OpenFormDailog");
    })
)
